import request from '@/utils/request'

// 查询常用发票抬头列表
export function listInvoceTitle(query) {
  return request({
    url: '/member/invoceTitle/list',
    method: 'get',
    params: query
  })
}

// 查询常用发票抬头详细
export function getInvoceTitle(id) {
  return request({
    url: '/member/invoceTitle/' + id,
    method: 'get'
  })
}

// 新增常用发票抬头
export function addInvoceTitle(data) {
  return request({
    url: '/member/invoceTitle',
    method: 'post',
    data: data
  })
}

// 修改常用发票抬头
export function updateInvoceTitle(data) {
  return request({
    url: '/member/invoceTitle',
    method: 'put',
    data: data
  })
}

// 删除常用发票抬头
export function delInvoceTitle(id) {
  return request({
    url: '/member/invoceTitle/' + id,
    method: 'delete'
  })
}

// 导出常用发票抬头
export function exportInvoceTitle(query) {
  return request({
    url: '/member/invoceTitle/export',
    method: 'get',
    params: query
  })
}